<!DOCTYPE html>
<html>
	<head>
		<title>CSS Regions: multiple auto-sized floated regions</title>
		<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#regions-visual-formatting-details">
		<meta name="flags" content="">
		<meta name="assert" content="Test checks that multiple regions that are auto-sized and floated
				are sized according to the auto-size algorithm but also respect the floats sizing model.
				They should also be properly floated relative to their corresponding block formatting
				context.">
		<link rel="match" href="reference/floated-regions-001-ref.html">
		<style>
		article {
			font-family: Ahem;
			font-size: 20px;
			line-height: 1em;
		}
		.flow {
			flow-into: f;
		}
		.blue {
			color: blue;
			border-color: blue;
		}
		.green {
			color: green;
			border-color: green;
		}
		.break {
			break-before: region;
		}

		#region-container {
			border: 10px solid black;
			overflow: hidden;
		}

		.region {
			flow-from: f;
		}
		.region p {
			background: red;
		}
		.right {
			border-left-width: 20px;
			border-left-style: solid;
			float: right;
		}
		.left {
			border-right-width: 20px;
			border-right-style: solid;
			float: left;
		}
		</style>
	</head>
	<body>
		<p>
			Test passes if you see a horizontal, black-bordered rectangle with a green square at its
			left end and a blue square at its right end. The rectangle should be approximately as
			wide as the page.<br>
			You should see no red.
		</p>
		<div id="region-container">
			<div class="region right blue">
				<p>&nbsp;</p>
			</div>
			<div class="region left green">
				<p>&nbsp;</p>
			</div>
		</div>
		<article class="flow">
			<div class="blue">
				xxxx<br>
				xxxx<br>
				xxxx<br>
				xxxx<br>
				xxxx
			</div>
			<div class="green break">
				xxxx<br>
				xxxx<br>
				xxxx<br>
				xxxx<br>
				xxxx
			</div>
		</article>
	</body>
</html>